package com.google.code.teamtools.domain.impl;

import com.google.code.teamtools.domain.ISkillCategory;

public class SkillCategory implements ISkillCategory
{
	private Long id = null;
	private String description;
	private String name;
	
	public SkillCategory()
	{
	}
	
	public SkillCategory(String name)
	{
		setName(name);
	}
	
	public SkillCategory(Long id, String name)
	{
		this(name);
		setId(id);
	}
	
	public SkillCategory(String name, String description)
	{
		this(name);
		setDescription(description);
	}
	
	public SkillCategory(Long id, String name, String description)
	{
		this(name, description);
		setId(id);
	}
	
	public String getDescription()
	{
		return description;
	}
	
	public Long getId()
	{
		return id;
	}

	public String getName()
	{
		return name;
	}

	public void setDescription(String description)
	{
		this.description = description;
	}

	public void setName(String name)
	{
		this.name = name;
	}
	
	public String toString()
    {
        StringBuilder sb = new StringBuilder();
        sb.append("SkillCategory[");
        sb.append("id:");
        sb.append(this.getId());
        sb.append("|name:");
        sb.append(this.getName());
        sb.append("|description:");
        sb.append(this.getDescription());
        sb.append("]");
        
        return sb.toString();
    }
	
	private void setId(Long id)
	{
		this.id = id;
	}
}
